package vashion.azeroth.core.manager.personal;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.dao.PersonalApprovalDao;
import vashion.azeroth.core.personal.pojo.PersonalApproval;

/**
 * 
 * 点赞
 * 
 * */
@Service
public class PersonalApprovalManager extends BaseManagerImpl<PersonalApproval> {

	@Autowired
	PersonalApprovalDao personalApprovalDao;

	@Override
	public BaseDao<PersonalApproval> getDao() {

		return personalApprovalDao;
	}

	public int updateById(PersonalApproval personalApproval) {

		int cnt = personalApprovalDao.updateById(personalApproval);

		return cnt;
	}

	public List<PersonalApproval> getFeedsApprovalInfo(PersonalApproval pf) {
		return personalApprovalDao.getFeedsApprovalInfo(pf);
	}

}
